Refactored javascript code:

- Old main.js
- New jquery.flappy.js