[JS] Update filter tests to work on both

Still need to dynamically switch between node and .Net