Bug 880330 - Refactor dom to use the new options API (1/2); r=khuey