How to build a JavaScript-based recipe app with a dynamic ingredient calculator?