$(() => { $("a.backtop").click(function() { $("body, html").stop().animate({ "scrollTop": 0 }); }); });