Interesting.... thanks I have now solved it...
The browser has a default setting under compatibility mode:
"Display Intranet sites in compatibility view" and that was obviously triggering that script.
Now un-ticked, and the log-in problem is solved, we will roll out the change to all users (unless we find our Intranet still needs compatibility)
Many thanks