One more thing. In my experience this error occurred because there was another error previous to the Function is not defined - uncaught referenceerror.
So, look through the console to see if a previous error exists and if so, correct any that exist. You might be lucky in that they were the problem.