javascript: simple dead code elimination
Merge pull request #1349 from raichoo/javascript

javascript: simple dead code elimination