initial call of position() moved inside window.load event