Moved filter JS code to separate include