Switch filters to use object literals
Updated QUnit tests

Fixed #128