InsertCommitScript: removed code not used

removed some code not used inside the server side Javascript InsertCommit function.
Merge pull request #6 from AGiorgetti/master

InsertCommitScript: removed code not used