js/events: ignore mailto links

fixes #7079