Update script.js

Clean up and change to better method of achieving the Navigation Movement.