Update location of some JavaScript libraries

Some of these weren't working so I located canonical locations.

Others were out of date so I updated.
Adjust space name checking to avoid encoding issues

The tests were redundant. We need to match a certain set of
characters. The encoding at this stage is not relevant: we
should already be decoded.