remove excessive whitespace
var scope the variables to make it thread safe.
Merge pull request #1 from clarkie/master

var scope variables to make component thread safe