building out functionality of form

Incident time stamps are added on submit and when a form being edited is
submitted.

Incidents are ordered by time stamps.

Index of incident is now found with the Array.indexof() function. A
polyfill is added to make sure it works in any browser.