function nextSiblings(element) {
  var next = element.nextSibling;
  var siblings = [];

  while (next) {