getting ready for ajax