Translate to pure JS, using coffe + requirejs + r.js was not my greatest idea