Bounce 1.2 js

Cleaned up code