Move the application into better structure

Use coffee script for javascript