pure javascript implementation that quickly makes the markup tabbable