Update script.js

Added ball movement.