fixed issue #69; checked all JS with Online Lint