small tweak to the js insert commit script

Removed unneeded code in the Javascript Insert commit script: idType wasn't used anywhere.