refactor kitchen_pages.js