Avoid creating too many timeout handlers

This fixes a Chrome crash, which can be reproduced on OSX by opening a JavaScript large file in the kitchen sink, selecting the contents, and holding command-/. It seems in that scenario, a new setTimeout() is done for every line commented/uncommented

@nightwing @mostafaeweda