Move tape loop event binding to tape directive.