Update dson2.js

Check for extraneous input after end of data.