var statements fix

I made a few small fixes on var statements. There was a global leak on an lr and then a few extra var statements elsewhere. 

The missing var in front of the lr was causing tests in other modules where bcrypt-nodejs is used to fail due to a leaking global variable