Basic javascript code structure for async workflow control .