Solving the issues with ajax cart