This reverts commit 08589ebf96.
08589ebf96
i'm not in anyway versed in javascript, but this hack fixes #457 for me.