code: function() {
    //first try hash
    var urlParams = null;
    if (window.location.hash.length > 1) {
      //firefox does some decoding if we're using window.location.hash (e.g. the + sign in contentType settings)
      //Don't want this. So simply get the hash string ourselves
      urlParams = $.deparam(location.href.split("#")[1]);
    }
    if ((!urlParams || !("query" in urlParams)) && window.location.search.length > 1) {
      //ok, then just try regular url params
      urlParams = $.deparam(window.location.search.substring(1));
    }
    return urlParams;
  }
docs: get url params. first try fetching using hash. If it fails, try the regular query parameters (for backwards compatability)