Correct typo from global initialization

It would overwrite the previously defined form2js
Allow rootNode to be passed as a string of the id

This matches the behavior of form2js