JavaScript: easily do a continuous action on mouse hold