transition from static html to javascript generated html