So I understood now, the code is from New Relic – A web application to get live reports about the working of the website and the resource utilization. I have disabled New Relic.
However, the JS error is gone now but the slider is still not working as expected. I will try a few other ways. Thanks for the help.