new jasmine, smarter trycatch (fixes #4)
domcontentloaded, fixes #3