Fixed horrifying JS syntax errors
Finally fixed the bad markup. Passes WC3 HTML5 validation, runs in IE fine now