This plugin allows easily to get url params of your document, image, script or anything else. Just call
$('#yourElement').getUrlParam("param");