Added var keyword to self variable to avoid namespace collisions
fixed stupid syntax error i didnt notice at first
Merge pull request #2 from discoverydn/master

Fixed syntax errors