$('.joinbtn').click(function(){
var a = $("#contact").offset().top;$("html,body").animate({scrollTop:a}, 'slow'); });