moving a.onclick=ActivateCommentsList inside getPictureHTML

donno why it works when set inside but not otherwise.