Fix lookup of doc in preview;fix javascript mime-type
xml diff: cut on pre, ul and p