Amazon stock gains as jobs data surprises to the upside, dockworker strike ends