updated examples, jsdoc and fixed browser.destroy