now using jquery to send POST request