Make ajax requests work