Webkit: Use local variable for buffer

There can be some troubles when using a global variable with a common
name (buffer). It is better use (let ...).
webkit: delete trailing whitespaces
Merge pull request #9 from chep/master

Webkit: Use local variable for buffer