mshtml: Move preferences settings to separated function.