Update jsanddom.js

jssndom.js updated with finished code