Adding accident.js stuff to index

Working