refactored newRecipe.js