var parsedPath, currentPage;
parsedPath = window.location.pathname.split('/');
currentPage = parsedPath[parsedPath.length-1].split('.')[0];
if (currentPage === '') {
    $('#index').addClass('active');
} else {
    $('#'+currentPage).addClass('active');
}
