jquery submit function. will likely need rewriting, but now i can write the flask route
dicking around. at present, contents of update var doesn't seem to be making it to the flask route.