Fix incorrect condition check

The build is broken! It turns out that one of my refactoring tools didn't do a good job of noticing it was javascript and not coffeescript! Sorry about that.