js reposition