Added leaving page js confirmation/warning.