small tweak to the js insert commit script

Removed unneeded code in the Javascript Insert commit script: idType wasn't used anywhere.
Merge pull request #1 from AGiorgetti/master

removed unneeded code