added ajax call to post the addform data to /api/add
Merge pull request #4 from tenyo/add_jquery

added ajax call to post the addform data to /api/add