Fixes #753

Ps. I'm a Pythonista and do not mainly program Javascript. But this fixes #753