code: function(p, s){
              s = s || window.location.search;
              if(!s){
                  return null;
              }
              if(!(s.indexOf(p+'=')+1)){
                  return null;
              }
              return s.split(p+'=')[1].split('&')[0];
          }
docs: Retrieve a GET parameter from the window.location. Type casting is not performed.
  @param {String} p The param value to retrieve.
  @param {String} s Optional string to search through instead of window.location.search
  @return {String || null} The string value or null if it does not exist.