Refactor orders.js.coffee completely