creating soft cart js