Adapt java script file paths