active page using jQuery, removed small bug
applying template inheritance