Static version of localized user dynamic js script delivered instead of dynamic version

A static version of the user dynamic js script is delivered rather than the version that is dynamically generated using a GET argument to index.php.  Should help performance as the statically generated .js file is more readily cacheable and could also be served from a cdn. 

Should resolve issue 565