Change width of DIV via JavaScript

I want to dynamically change the width of a div via a JavaScript variable. Something like the following:


     

How can I get the JS to talk to the inline style I have:


```html

<div class=“percent” style=“width: 60%”></div>

:pope: