change html title
prevent dragging past the end of the data