Update jstreegrid.js

Fix #59, #60
(sorry for major whitespace changes)