change to incorporate the R data pull in the header script in the
servlet rather than the script