step1: clena html markup from js