it didn't pass gjslint but it did pass jshint ;)

I think I should set up jscs for at least some of these style checks.