Abstract mouseover button code a bit (could be better yet), and fix an
index variable bug in the removeRange code.