Pure requireJS rewrite