fix issues with requirejs