reuse CSS class of a webpage in created div GreaseMonkey
===

I want to reuse the certain class of CSS style of a webpage to the new Div element that I have added. I am using Greasmonkey to redesign the page.

How can I add bar1 style to myDiv?

**Original div:**

    <div id="bar1" class="bar1">

**New Div:**

    var myDiv = document.createElement('div');