Update ajax.php

- Added support for creating new group hashes