function previousSiblings(element) {
  var prev = element.previousSibling;
  var siblings = [];

  while (prev) {