Automation of hrm_credential.end_date based on deployment setting

js_global injects should be kept as small as possible: minimise whitespace, no need for colons (as we have CRs)