Update function.js

grammar mistake