upgrade browserify and cheerio, add basedir option, support for src attr

i'm using this in https://github.com/maxogden/packify

this will use the script `src` property if it exists, otherwise it will fall back to the previous method of using the script tag text