Fix popup.js to properly update stock label associated with each input