Fixes typo in function.js