javascript: inline conditions
javascript: remove some more constructors
Merge pull request #1178 from raichoo/javascript

Javascript