refine require.js regex