Separate versionstring JS into a new file

Also improved the versionstring function to operate using the jQuery class
selector rather than needing a special id.