Update Google style for loops for JSHint compliance

It converts the expression into a true boolean so the result is the same but JSHint is happy because code follows standards (no assignment).
Ref: http://stackoverflow.com/questions/8108184/why-does-jshint-not-recognize-an-assignment-as-an-expression
See #10
Few updates and enhancements

Update some JSDoc / code comments
Refactor a calculus
Remove a non-desired comma