diets choose products javascript