minor adjustments for better portability with browserify

Hi Andris,

first of all thanks for your awesome email libs. We were able to port simplesmtp to a chrome packaged app using chrome.socket.

We only had to adjust the syntax in two lines of code to ease porting via browserify. This patch does not changed anything semantically. Perhaps this would ease porting of your lib to other browsers as well.

Thanks