Fixed issues with finding js files.