Separated JS from HTML in Red-Black Tree insertion exercise.