Allow tests to be run from subdirectories

This fixes a bug where currently if you try and run tests.html from a subdirectory 

e.g. running /js/third_party/papaparse/tests/tests.html 

the 2 tests above will fail.