clearTimeout instead of clearInterval for timers

We create timeouts, not intervals. Then we need to clear them with
clearTimeout.
Merge pull request #285 from glance-/rfb_js_fixes

Rfb js fixes