Updating comments in javascript