Lots of fixes

Not polluting global namespace
Adding message for when bus routes are not working
Refactoring in server.py
Added jQuery script for offline debugging