Playing around with requirejs and ternjs