Flush gzip buffer
Fixed JSLint errors
Merge pull request #5 from jlecomte/flush-gzip-buffer

Flush gzip buffer, JSLint errors and code presentation