Update events.php

Add autocomplete for times
Fix PHP error 'Can't get property from non-object'
Rename javascript file and add admin style file