Modularize html for ajax