Expanded to sessionStorage with a simple check.

It does not break code as it just depends on the addition of an argument
Fixes #2