JS switched to CoffeeScript
Some code clean. Other minor improvements
Bug fixed