added some ajax to the analytics page