Change cookie reading approach
Change cookie reading approach

Collecting all cookies in a jar, and when looking for a specific one
breaking out of the loop.

By this we're also sharing one variable less (`result`) for both the
write and read functionality, which will make it easier to modularize
the library in the future.

carhartl/js-cookie,js-cookie/js-cookie,js-cookie/js-cookie,carhartl/js-cookie