function getById(id) {
    return typeof id === 'string' ? fabric.document.getElementById(id) : id;
  }
Takes id and returns an element with that id (if one exists in a document)
@method getById
@memberOf fabric.util
@param {String|HTMLElement} id
@return {HTMLElement|null}