Update script.js

Added bouncing!