Totally rewriting extension.py to embed JS in the Notebook and render the flask app unnecessary