fixed relative urls for js files too