JQuery/Javascript Commit