Fix Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 errors

Remove the multiple send() calls in ajax if there's data to post.
Encode parameters before submiting them in feed()