Javascript Bounce Ball Custom Animation Script