Javascript Commit