//jQuery anchor link on the same page
$('#menu a[href^="#"]').on(click, function (event) {
var target = $(this.getAttribute('href'));
if (target.length) {
event.preventDefault();
closeMenu();
$('html, body').animate({
scrollTop: target.offset().top
}, 1000)
}
});