fix for dynamic anchor element click not working in gecko based browsers