Adding ajax suppot to basic writer