fixed typos

fixed typos in package.json
fixed undefined var
tweaked text string