Program is working now! Fixed the algorithm in delivery.js and commented out a couple lines in ui.js that chrome was complaining about.