fix closure lint and jshint errors