Fix up Offline.js