Fix a compatibility issue with IE9 and IE10.

They don't like the extra comma at the end of a dictionary.

Thanks to Joop van Bussel for the finding the issue and reporting the
fix!