Confirm before leaving page

added script to Confirm before leaving page