Bugfix for issue #8

Wrong name of JS variable