Load all javascript dynamically

A valiant attempt at #772.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/68/

I couldn't actually reproduce the bug locally to test this, so I can't tell if it actually fixes it or not, but it seems reasonably likely to. And it didn't introduce any obvious *new* bugs, at least.