ajax example (fixes #9)