Fix issue with old mozilla browser

fixes #3