prevent uncaught 'beforeunload is not available in packaged apps'

hey James -- Google Chrome Packaged Apps strikes again ;-) cheers