Idiomatic JavaScript

Also remove executable bit from LICENSE.
Merge pull request #22 from mvasilkov/js-idiomatic

Idiomatic JavaScript