I have the following menu by bootstrap
HTML
one of your selectors is malformed, by looking at your html it looks like on the third line of the script that selector isn't doing what I think you want it to.
$("#homeL, #workL").click(function(){
//$(".nav navbar-nav li") <-this is looking for a - inside a
// tag inside a tag with the class "nav"
$(".nav.navbar-nav li").removeClass("active");
$(this).addClass("active");
});