Fix broken JS selector for category selector popup.

Also style category legend differently in no popups fallback.

References #77