debugger.js is shared with [b2gremote](https://github.com/fabricedesre/b2gremote), where it's loaded as a JSM; and we need to keep it working there. So use nsITimer to create/destroy the timer if !COMMONJS.