adding js files locally and fixing paths