Added JS to mark parent li with 'active' class when clicked