javascript: collapse noop conditionals
Merge pull request #1028 from raichoo/javascript

javascript: collapse noop conditionals