moved filter js to it's own file