added ajax request function
fix for events calendar plugin