Issue 115 eslint

I'm not overly happy with this... but i'm open to reviews before I delete it and try again.
Comments inline.
ESLint didn't like this either:
```
tools/test_encryption.js
  16:0  error  Unexpected constant condition  no-constant-condition
```

If you don't like the `/*eslint-disable*/` here, we can probably turn off the [no-constant-condition](http://eslint.org/docs/rules/no-constant-condition.html) rule.