modify function.js