fix url paths for ajax calls

The url paths that were being used used absolute paths rather than relative paths.