Added cookies to envelope, fixed linter flags (re-declarations, multi-line vars and loose equality comparisons), adding scripts section to package.json