Revert a3553c7a5d257421aa071680f2cd8b1a05b2686a

The javascript causes TypeError on Internet
Explorer 6-8. See this Sauce Labs job for more details (scroll to the
bottom of
the page for screenshot):

https://saucelabs.com/tests/b203cb5adf664843ba69e9a64e4faa17

bug 44299

Change-Id: Ifb827dfd2befb87dd4fb255e27064d0505fca025