fixed relative paths for ajax call