Standardise tabs from spaces and indent a few things correctly in localization.js