embed js/html into page and switch from md