I'm sure his tummy is just upset. He probably got into something that didn't agree with him.

I'd suggest fasting him for a day--dont' offer him any more food or treats today. Feed him normally tomorrow. That will give his stomach time to settle down. Just make sure he has access to water so he doesn't dehydrate.

Feel better soon, Jasper.