show message before unloading page if dirty

this file should be moved to densajs