Fix JS error found by @yuhunglin
Merge pull request #1373 from christianv/nojira

Fix JS error found by @yuhunglin