Removed unnecessary code.

As above. The code current does not work with Firefox. Works on Chrome.