code: public static void appendGetParamForJavascript(final String key, final String value,
  			final StringBuffer vars, final boolean existingVars) {
  		vars.append(existingVars ? '&' : '?');
  		vars.append(key).append('=').append(WebUtilities.escapeForUrl(value));
  	}
docs: This is a slightly different version of appendGetParam that doesn't encode the ampersand seperator. It is
  intended to be used in urls that are generated for javascript functions.
  
  @param key the key to append
  @param value the value to append
  @param vars the existing query string
  @param existingVars true if there are already existing query string key/value pairs