fix javascript error in firefox leading to login popup not opening anymore