fixed according to comments
Merge pull request #158 from GoogleChrome/fixjshint

Peer2Peer - Fixed all JSHint errors which wont affect (mostly) the planned refactor to classes + some tidying