Modify: create i18n.js and move code to it