Moved isLocalStorageSupported method out of the privateMethods object