Minor style updates

First commit:

- `s/for(/for (/`
- `s/if(/if (/`

Second commit:

- Get rid of the JS heritage: `for(var i = 0, length = l.length; i < length; i++)`