Add support for IE9, and fallback for non-support of localStorage

- Add String.prototype.contains if not existing. 
- If no localStorage, fallback to cookies
- Remove function supportsHtmlStorage