CoffeeScript version of canvas-moodle