Fixes typo in function.js
Merge pull request #4416 from timvandermeij/function-typo

Fixes typo in function.js