Fixed localization and removed script-code to .js-file