fixed jquery/json bug so all categories and options are captured