Make parser punctuation-agnostic

It now ignores all punctuation when checking/parsing words.  Haven't tested this in IE8 yet, but I intend to.  Works fine in Chrome.

I also took the liberty of separating the JS into a separate file and cleaning up the code a bit.