I'm trying to use this code for a navigation bar but
a. its not working b. i receive this warning in Google chrome (Uncaught SyntaxError: Unexpected token ILLEGAL)
It all works perfect on Jsfiddle and the website i'm in the middle of making is very basic with no other javascript on the page so i don't see the problem.
I've tried loading the code from the head, the body and also referenced it as an external js file but no luck with either one.
Here is the link to the jsfiddle: http://jsfiddle.net/zegermens/9hYey/
If anyone can help me with this code or explain why it wont be working on localhost it would be amazing.