Added comments for socialnetwork JS, views and tests.