change js structure, change 'newRecipe' layout and clean debuging code