setup for working with ajax