Please try to follow the same style as the rest of dygraphs:
http://dygraphs.com/changes.html

We follow the Google JS style guide, which requires spaces around the if conditions, i.e. "if (bars) {"