Reworked global variable names to avoid conflict with user variables.  Removed a reference to RJSON