Typo for JavaScript keyword 'function'

Fix tiny typo.