apparently flask's testing server wont support javascript