Fix bug with internet explorer using class as a key for an object