DataTable search bug fix and beforeunload

When search by date the month would not include a preceding zero if it
was less than 10. Also, pages will prompt if there are unsaved changes.