added javascript funtions to add multiple ingredients