minor style issue if (. I think jslint will complain about it.