VAM-792 Make code more legible, consolidate functions and separate executions
VAM-792 Make code more legible, consolidate functions and separate executions

vistadataproject/metaPureJS,vistadataproject/metaPureJS,vistadataproject/metaPureJS