You could try using this online site to validate the javascript code.
https://www.htmlstrip.com/javascript-validator
Beyond that you will need to share the contents of that file in order for forum users to help you. We have no idea what that file contains.
And you tagged W10 Hardware Performance. Change that to just "Windows 10" because your error has nothing to do with hardware.