JavaScript querystring decoder