move js method