Fixed JS on adding new elements on edit page
Simplified recipes#new and recipes#edit