added javascript on purchases checkbox to remove checkbox and replace with 'yes' if item is purchased.