Updated scripts for requirejs api