Fixed javascript code so that I can add a gift. All good.