Corrects path to js files