Javascript Create Async Function Syntax Matlab Drive