convert Asset.js to coffee