Get query string values from JavaScript