Workaround for process.nextTick()

As described in #30 this commit installs a workaround that basically replaces process. nextTick() with window.setTimeout(). Maybe not the ideal solution, but makes ticks nicely working for now.