Clean-up of ajax example