Added getLocation of an element