Fix jshint errors & add buffer size warning message