refactoring, added separate js file for recipies