Fixed Firefox compatibility issue, introduced by IE workaround.
That will teach me not using Modernizr...