code: function createHTML5Shims() {
    // localstorage dummy (does nothing)
    if (typeof window.localStorage == 'undefined') {
      window.localStorage = {
        getItem : function() {
          return null;
        },
        setItem : function() {
        },
        clear : function() {
        },
        removeItem : function() {
        },
        length : 0,
        key : function() {
          return null;
        }
      };
    }
  }
docs: Create shims for HTML5 functionality if not supported by browser.