update package.json to use npm packages if possible
fix deferred.done can not pass arguments