almost finished appendhtml.js

Almost done. A little task remain for a iranian