Added JS code for nested category lists