Testing ASYNC on Javascript