added some stock ajax code to this file