add test example for async js