Reindent js, change a <div> to a <figure>