Move jQuery stuff out of script.js to avoid an error when installing SMF (fixes #1929)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1938 from Oldiesmann/release-2.1

Move jQuery stuff out of script.js to avoid an error when installing SMF...