Move js fuction