Initial jasmine spec tests

they run in the browser and on node!
'define' now works for nodejs

instead of picking 'require' for node and 'define' for the browser
Reduce the number ToC is rendered

added a renderModelOnly when only the model changes (renderModel does
not actually change the DOM)
Ensure getChildren() always returns the same collection
Merge branch 'weekend' into github-refactor