Reformatting style and adding comments

No functional changes
Merge pull request #12 from jehope/msnJSMods6Dec2013-2

Reformatting style and adding comments