Fixing memory leak from not clearing setIntervals

This is replicating a fix present here: https://github.com/jwplayer/jwplayer/pull/119