Cleaning up app.py
Cleaned up javascript