checkout js work