Using new JSON API on client side.