Added a new ajax method to page to help with ajax calls.