Updated requirejs configuration to be optimised for production