Fixing wrong string name in javascript, and delaying drawing until javascript has drawn.
Merge pull request #1 from spekary/bugfix-drawingProblems

Fixing wrong string name in javascript, and delaying drawing until javas...