adds javascript to send payment detail to balanced