add browser support when using require.js