Fixed closure lint and jshint errors