resize plot with javascript

I’m trying to make a plot responsive. I saw here that is should be easy to manipulate the plot size in javascript, but after digging through bokeh.js I haven’t been able to figure it out. I can easily change the width and height, but I can’t figure out how to actually re-render the plot. I would love it if I could just call ResizeTool programmatically instead of actually clicking on the tool button. Is there a straightforward way to do this?

Thanks in advance for any help you can offer.