Use user's language in offline.js