applying requirejs