Update i18n.js

Expected json datatype for locally loaded language files (no server)