add offline.js