Only load static resources once instead of every poll

Previously various js files would be loaded every time.  Causing
memory use to grow (Chrome Dev tools said 200 MB after a few hours),
and eventually the browser to crash. For unknown reasons some of them
were also loaded with a random cache busting parameter, which probably
exacerbated the situation.