add workaround to metadata filter js so it also works in IE9 and IE8 as well