Everything works! Except on IE 8, though. Turns out that `indexOf` doesn't work on IE 8. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf

I found a few missing semicolons, too, when I ran your code on http://jshint.com/. So after these two fixes, I'll merge it in.