Added proper requirejs functionality.