append js and dom to html body in proper position #186