minor tweaks to enable Requirejs support via requirejs-rails