Fix closure lint and jshint errors