The Avengers/YouTube Tom Hiddleton thanked director Joss Whedon for writing him ‘the coolest part’ as Loki (left) in ‘The Avengers.’

“The Avengers” is one of the highest-grossing movies of all time.

The 2012 Disney film has made more than $US1.5 billion at the box office; however, the film wasn’t always a destined hit.

When Joss Whedon initially met with Marvel Studios president Kevin Feige to look over a script by “The Incredible Hulk” screenwriter Zak Penn he said they needed to “pretend this draft never happened.“

After impressing Feige with a five-page treatment for what he thought “The Avengers” should look like, Whedon proceeded to work on a new script for the film.

It took several drafts and collaboration with the cast including actor Tom Hiddleston, Marvel Studio’s team, and other Marvel franchise directors to get it approved.

According to “Joss Whedon: The Biography,” in stores August 1, Hiddleston, who plays antihero Loki in the film, wrote Whedon a heartfelt email after reading Whedon’s draft for the first time.

We’ve published Hiddleston’s letter in full along with Whedon’s response with permission from Chicago Review Press below.

Joss, I am so excited I can hardly speak. The first time I read it I grabbed at it like Charlie Bucket snatching for a golden ticket somewhere behind the chocolate in the wrapper of a Wonka Bar. I didn’t know where to start. Like a classic actor I jumped in looking for LOKI on every page, jumping back and forth, reading words in no particular order, utterances imprinting themselves like flash-cuts of newspaper headlines in my mind: “real menace”; “field of obeisance”; “discontented, nothing is enough”; “his smile is nothing but a glimpse of his skull“; “Puny god” … … Thank you for writing me my Hans Gruber. But a Hans Gruber with super-magic powers. As played by James Mason … It’s high operatic villainy alongside detached throwaway tongue-in-cheek; plus the “real menace” and his closely guarded suitcase of pain. It’s grand and epic and majestic and poetic and lyrical and wicked and rich and badass and might possibly be the most gloriously fun part I’ve ever stared down the barrel of playing. It is just so juicy. I love how throughout you continue to put Loki on some kind of pedestal of regal magnificence and then consistently tear him down. He gets battered, punched, blasted, side-swiped, roared at, sent tumbling on his back, and every time he gets back up smiling, wickedly, never for a second losing his eloquence, style, wit, self-aggrandisement or grandeur, and you never send him up or deny him his real intelligence…. That he loves to make an entrance; that he has a taste for the grand gesture, the big speech, the spectacle. I might be biased, but I do feel as though you have written me the coolest part. … But really I’m just sending you a transatlantic shout-out and first-bump, things that traditionally British actors probably don’t do. It’s epic.

Whedon wrote back with a simplistic response:

Invision via AP Joss Whedon and Tom Hiddleston at the 2013 MTV Movie Awards.

Tom, this is one of those emails you keep forever. Thanks so much. It’s more articulate (and possibly longer) than the script. I couldn’t be more pleased at your reaction, but I’ll also tell you I’m still working on it … Thank you again. I’m so glad you’re pleased. Absurd fun to ensue. Best, (including uncharacteristic fist bump), joss.

Business Insider Emails & Alerts Site highlights each day to your inbox. Email Address Join

Follow Business Insider Australia on Facebook, Twitter, LinkedIn, and Instagram.