moving sample js