converted index.js to coffee & fixed asset.coffee's requires