InsertCommitScript: removed code not used

removed some code not used inside the server side Javascript InsertCommit function.