fix sourcemaps

Use r.js' method for including require.js in the script bundle.