Fixed multiple medications in json and finalized main.js