functionality added to dynamically capture the user's order into a JSON object