Update xtForm.js

This is my first ever pull request so idk if I'm doing this right.
I found a small bug with the error message indexing in xtForm.js that I've got a simple fix for. I may have screwed with the formatting of the file as I used github's UI to make the change.

Hope it helps! :)