Resolve JS hint errors

Minor touch up so it passes validation
Ah, yeah, that's ugly.   Closures don't work that way.