Correct 'alert' to 'window.alert'.
Removing unneeded log and alert.
Removing declaration of unused 'socket' object.
Merge pull request #65 from janaspage/master

Removing declaration of unused 'socket' in index.