Ajax reusability attempt