Adding js localization to 1-3-stable

Hi, I had an problem using the admin tools in a production setting because the views using a javascript_include_tag in the body, however the file referenced wasn't being independently compiled when using the asset pipeline. As a fix I considered adding the javascript file as an extra asset to compile, however I then came across this commit in the master branch which fixes the issue I have, so I wondered if we could just pull this in to the 1-3-stable branch?