Added some javascript for the flask app.