[js] corrected the way to count items in  FormCollection.addItem
Merge pull request #23 from ANfactory/master

[js] corrected the way to count items in  FormCollection.addItem