Optimised version of RequireJS