translate & move task's javascript to assets/coffeescript