- rename $categoryComponents parameter: $categoryComponents is correct only for first call, then the fn recurses and you get a page

- remove back parameter, it's not dynamic, simply define var in here (or move it to javascript)