Crudely patch around the deprecation of Mozilla's Components object.

This is my attempt to patch #3.