Adding a test for "Javascript filtering example doesn't work" issue

Closes #44.
(cherry picked from commit f13cb5e)