convert fragments js code to coffeescript
Merge pull request #6 from fs/coffeescript

Convert fragments js code to coffeescript