fix up issues reported by the closure compiler