making permalinks ajaxy