small fix

Small fix for function.js .