code: function getPinIdFromUrl(pinUrl) {
      var startIndex = pinUrl.indexOf('pin/') + 4;
      var endIndex = pinUrl.indexOf('/', startIndex);
      endIndex = endIndex === -1 ? pinUrl.length + 1 : endIndex;
      return pinUrl.slice(startIndex, endIndex);
  }
docs: /*
  Get the pin ID out of a pin URL
  
  @param String pinUrl
  @return String pinId