ajax_demo: changed code to follow guidelines
ajax_demo: removed redundancy in code
Merge pull request #6 from sdaityari/ajax_demo

ajax_demo: modified code to follow guidelines