Fixed a typo.

Hi, thanks for making this code public - I'm no JS expert but I did notice one slight problem.