Added support for periodical reservation in ajax callback function