 The earliest script of the movie called for Captain January to die  at the end, just before Star is taken away from him by her  relatives: "On their final evening together, he allows her to light  the lamp in the lighthouse [something she has always wanted to do].  She is unaware that the Captain has suffered a massive heart attack  and is unable to carry out his duties. January sees the lamp lit and  dies." Shirley Temple (qv)s producer, Darryl F. Zanuck (qv),  made extensive changes to this script.