Change ajax to use habitat directly.