fix some small issues found by closure compiler (IE incompatibilities)
Merge pull request #3012 from NWilson/smallfixes

fix some small issues found by closure compiler (IE incompatibilities)