Add the original Angular code for offline-mode