It turns out all that time spent surfing YouTube videos may actually pay off.