Replace hardcoded path in JS