fixed appendhtml.js