fix the relocate sighting button JavaScript error

fixes #75