Thanks for the reply Tobias… I thought that’s what I had done. But I’ve just realised I was using the ‘collapse’ option for the Extension rather than the ‘scroll’ option! My bad!
Changed it to scroll and the Javascript error has disappeared.
Thanks for responding so quickly though!