Refactored javascript file to use more descriptive i18n tags