javascript faulties still from moving