Lemon juice is made from the flesh of the lemon, while lemon extract is made from the oils of the lemon peel. The lemon extract works great in the dough because it has a subtle - but not tangy - flavor that is perfect for the cookie. Lemon juice is used in the frosting because it creates the bright, citrusy taste in the fresh frosting.