recipes comments javascript  done before ajax functions