Remove hard-coded markup from the preview tool, use local debug template