Adding coffee script
Cleaning up code