It could probably store the code in the Cache API and serve it from a service worker so that it works offline and doesn't require evaling JavaScript