Adding requirejs compatibility