moving location to getLocation to better comply with other methods in the API
adding support for getting an element's size
merged santiycr changes