updated method to detect ajax requests, add ajax sample to demo.web, updated README.txt