use localStorage option

hi,

i've added a little check in order to let the user choose between standard cookie and the modern localStorage. didn't try yet in production.

hope it helps, let me know.