Post: How to write asynchrounous javascript