Fix error on existing dir for update-version-info
Fix demo page not showing graphs

Leaking globals in JavaScript