Update localize.js

Made change to allow url to point to the base of my application otherwise the url is set to the relative url 
EXAMPLE 
original code produced http://foo.com/bar/i18n/resources-locale_en-US.js
New Code produces 
http://foo.com/i18n/resources-locale_en-US.js (which I need)
Merge pull request #14 from cs45977/patch-1

Update localize.js