LeBron James and Anthony Davis helped the Lakers pull ahead in the final seconds of a 114-112 victory over the Boston Celtics.