Avoid unintended global

The `name` variable in `Diagram.prototype.getActor` is never declared, making it an unintended global. This fixes that.
Merge pull request #72 from magnars/patch-1

Avoid unintended global
Merge pull request #1 from bramp/master

update