JS think its a C# script - can't add!

My project is very messed up right now - some of the javascripts can not be used and do not compile because Unity is looking for a class name matching the filename.

e.g Dialog on trying to add script:
“Can’t add script behaviour ScriptName. The scripts file name does not match the name of the class defined in the script!”

How do I undo this bug!?

Edit: Think this is because I copied a scene on disc instead of doing a Save As, but it’s unfortunate if you can easily mess up a Unity project like this.

Try doing a Reimport All maybe?

–Eric