Update offline.js