implemented preload html, fixed ajax delimiter bugs