fixed delete of packages, fixed jshint issues