Delete edit comment

Completed the comment editing part and still working on delete.please provide your inputs on the current implementation so that I can make the changes accordingly in next PR.
please use jshint to spot things like this missing semicolon