Fixed demo script references
Removed whitespace
Added localStorage test
Using setInterval instead of setTimeout
Added localStorage support, falls back to cookies
Updated docs and readme. Closed #1