function changeSidebar(to){ $("#sgaSidebar ul .active").removeClass("active"); if(to != 'default') $("#sb"+to+"Btn").addClass("active"); } function changeNavbar(to){ $("#sgaNavbar ul .active").removeClass("active"); if(to == 'default') $("#sgaHomeBtn").addClass("active"); else $("#sga"+to+"Btn").addClass("active"); } You will be redirected shortly. If you are not redirected automatically, please click here to redirect changeNavbar('GetStarted'); $(document).ready(function(){ NM.init({ appid:1010101010101012, appsecret:'7ffddd71fb27ce68ca7145aa49775625', }); NM.login.init({ action:'authenticate', request:'uid', permissions:'profile_personal;profile_contact', fields:{ profile_personal: 'full_name;gender;dob', profile_contact: 'mobile1;email1;facebook' } }); $("#nmLoginBtn").click(function(e){ e.preventDefault(); NM.login.login(""); }); });