Retrieving Values from a QueryString with Javascript

From this QueryString

http://www.mustbebuilt.co.uk/demo/valueFromQueryString.html?size=10&weight=400&colour=Green&snake=oil

can be extracted the individual values: