cleaning up filter js functionality

Signed-off-by: noahg <noah.gunther@gmail.com>