movement using javascript...check on zoom-out