used js offset property for position