Much of one of Joe Pesci's most memorable scenes from Goodfellas was not in the film's original script.