Resolve JS hint errors

Minor touch up so it passes validation
Ah, good to know what was different.  Is it a bug that PhantomJS behaves differently than the real browsers?  I don't have PJS set up so I may need help testing the cleanup. Or...  i could pick up a new skill. =)