enabling categories to be selected
fixing a remnants from bad merge
adding more parameters to pass to JavaScript