Update script.js

Adjusting motion