JavaScript: using both onDoubleClick event and onClick event on the same control