Recipe Javascript correction