automated html content creation using js