Reworked shopping bag flay away JS functions so its more robust.