Add some sample compatibility with firefox