set absolute positiong using javascript