-Refactoring path rendering to look for js files with test-* prefix