Convert js to coffeescript. fix #2
Merge pull request #20 from linuxonrails/master

Convert js to coffeescript