hacked Cookie class to use localStorage
recompiled code