change function.js