updates to markdown preview
added nextTick and setImmediate to global list