run_javascript_tests.py: Be more flexible about directory layout.