JC: added js for nested pr category and sub category. spec passes.