Set manualy utm_source

How can can i set the utm_source manualy witch javascript?

I strip the utm vars from the url and set it into a cookie and redirect to the clean url.
So i would like to set the utm vars manualy by pasting the cookie vars into piwik.