Added  method to pipeline variables into Javascript