add comment javascript functions