stupid javascript...
Merge pull request #1858 from dimagi/fix_graphs

stupid javascript...