more flexible for theming

update media filter js for easier theming override.