changing require.js syntax to simplified commonjs wrapper