Moved js calls to just before </body>
Only use jQuery instead of dodgy window.onload from years ago.
Fixed missing doctype and opening <html> tag from header.php (Not sure when that disappeared!)
Creating anon user if no username registered and 'Just take the test' not submitted