Converted routes js to coffee