some initial ajax set up