You could try moving the js file. Not sure if it will simply
by-pass the highlighting or throw a wobbly because the file is
missing.
I really do not think it is the js file. It is either
something about the way you are implementing the method or
something quite unrelated.
Try another project without the method. Same issue.
Sorry but I am now going to be away for a couple of days with
little or no internet access. I'll pick up with this thread when I
return unless someone else can help meantime.
Check you have followed everything exactly.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.