javascript: remove redundant local constructors
Merge pull request #875 from raichoo/javascript

javascript: remove redundant local constructors