Overlay part2: updating javascript code to include all categories