Update src/function.js