updates to affirm js snippet and settings