Using expect to check method existence, using async library waterfall function to execute cascades of asynchronous callbacks