Using asynchrony with web applications