adding submit and ajax post;
Merge pull request #2 from dysfunc/submit

adding submit and ajax post;