New flash detection script ALMOST validates

So anyone know how to get it to completely validate?

once the comment lines are removed there’s only a few variables that need to be corrected.

Here’s the URL to my site in case someone wants to check the validation errors: LINK

And the validator:

I’ve tried a few things but can’t seem to get it to work…