Update script.js

Random factor for ball bouncing.