When making Star Trek, director J.J. Abrams and his writers came up with an unexpected code word that served as the key to their entire approach to the film.