/**
 * Selects the "active" menu in navbar
 */
$(document).ready(function() {
    $("li.active").removeClass("active");
    $('a[href="' + location.pathname + '"]').closest("li").addClass("active");
});