converted JavaScript.js to coffee, but broken
working
tmp