fix to pass jshint