Added an extended Window class
Fixed error in the local and session storage