Refactors all the javascript
Adds the ability to play music using sound manager