Fix Google closure compiler warnings, #486.
Merge pull request #486 from SteveSanderson/486-fix-compiler-warnings

fix google compiler warnings