update ajax calls to use resource loader