Added compatibility with loaders like requirejs