better sample code showing async and both JS and coffee