Alternative implementation to Ajax response