Uncaught exception: Function name must be a string