Added base.offline.js
Define function for base.offline.js