Revisão code style: JS

Closes gh-55. Closes gh-18.