improve eventloop.js example to use a sorted timer list for more efficient processing, some more example code