some small Closure-cleanliness fixes

Hi, I was just poking around looking for ways to improve Closure Compiler support. Here's a couple of small fixes to start.