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

... (fixes #1929)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>