Fixed JavaScript errors in #1034.
Merge branch 'v3.0' of github.com:wet-boew/wet-boew into v3.0