Converted to requirejs, added intropection