$(function() {
$("ul li").on('click', function(e){
e.stopPropagation();
var $this = $(this);
if(!$this.hasClass('active')){
$this.addClass("active");
}
console.log($(this));
});
});