// for jquery $( document ).ready(function() { $(".smoothScroll").on('click', function(e){ smoothScroll(e); }) });