code: function setUrlHashParameters(params) {
  
    var keys = Object.keys(params);
    var values = Object.values(params);
    var pairs = [];
    keys.forEach(function(key, i) {
      if (key != '') pairs.push(keys[i] + '=' + values[i]);
    });
    var hash = pairs.join('&');
    window.location.hash = hash;
  
  }
docs: accepts an object like { paramName: value, paramName1: value } and transforms to: url.com#paramName=value&paramName1=value