move main formatter code to func
base version for html
select before html beautify
beatify js