update to offline.js