Moved JS variables to inside function scope; added comments
Merge pull request #10 from jehope/msnModProjectPageJS2

Moved JS variables to inside function scope; added comments