Add a setTimeout before triggering cursorActivity event. (fixes #94, fixes #86)

Thanks to @matthewkremer for the suggestion.