added offline.js