added ajax to communicate with server
Merge pull request #1 from bhochhi/master

added ajax to communicate with server