A former Tesla boss said he and Elon Musk spotted a problem with the carmaker's website. They turned to Domino's for inspiration.