Idiomatic JavaScript

Changed most ternary operators to more javascript-ish, idiomatic logical-or:
```
// before
x ? x : 0
// after
x || 0
```
Also removed executable bit from LICENSE.