When Maguire signed on to portray Spider-Man in 2000, he was given a three-film contract.[10] While filming Seabiscuit in late 2002, Maguire suffered injuries to his back and Sony was faced with the possibility of recasting their lead.[2] Negotiations arose to replace Maguire with Jake Gyllenhaal, though Maguire recovered and was able to reprise his role, with a salary of $17 million.[12] Kirsten Dunst as Mary Jane Watson:[13] An aspiring Broadway actress and a friend Peter has loved since he was a child, yet he gave up the chance of being with her out of concern for her safety. James Franco as Harry Osborn:[14] Oscorp's current CEO, Norman Osborn's son and Peter's best friend who holds Spider-Man responsible for his father's death and also harbors feelings for Mary Jane despite them not being together any more.