Use JQuery to submit replace media form