emptying tables
b
t
a few changes to route handlers. used require to modularize client side js