Created global categories variable for intelligent categories on the front-end