title: how can we add a doctype using javascript
body: <p>i want to add doctype using javascript. when a doctype already exist i am able to modify it. but when it is null, not able to add new doctype.. how can i do it in JS</p>