This is very interesting. So how could we use the Cocoon extensions from Ludei's site with the browser object?
ie. Application "quit" control
For calling a boolean in Cocoon:
CocoonJS.App.setAppShouldFinishCallback(FUNCTION_THAT_RETURNS_A_BOOLEAN)
If it returns true then:
CocoonJS.App.forceToFinish