change orders.js to use coffeescript