Fix for bad syntax(?)

The original code throws an "Unexpected token function" error.