Added code to handle different style casing for different browsers