Using this script to make a style object of all the inherited etc styles.
var style = css($(this)); alert (style.width); alert (style.text-align);
At first, I wonder why the solution didn't work on my end
api['data-sitekey'] //returns undefined
...later on figure out that accessing data attributes is different: It should be like this:
var api = document.getElementById("some-api"); api.dataset.sitekey
Hope this helps!