removed translations from head, and refactored js validations