changed function.js path