Add javascript to autogroup htmlcss