conditional js for sightings page and also edit user