Generate valid js from functions with await statements.