find js files and base url