fix errors reported by google closure compiler that prevent minification