Interesting idea, would actually be funny if they can prove he wrote all the coide for his suddenly supersuccessful startup on their paid time and get a great percentage or all of the shares...
"We've been a bit unhappy about your performance for our main project but happy you created a more successful one for us..."