Cleaned up JS build errors reported by jshint.