add "hr" from javascript

JavaScript
var hr = document.createElement("HR");   // Create a <hr> element
document.body.appendChild(hr); 
Source

Also in JavaScript: