moving HTML elements from js to HTML