---
schema_version: "1"
id: 430b54d7cc5653826456c65010695faa67b7cf7b3bd6e356ee78fc3fc6fe5da4
title: SiteGenesis Client-Side Scripts
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_client_side_scripts.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_client_side_scripts.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2c03673d94dbd45560a7adba011fe0122689f7b2831d3b6f26e4bddeda6647b9
description: Client-side js in B2C Commerce SiteGenesis performs functions that don't require information from the server.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# SiteGenesis Client-Side Scripts

Client-side js in B2C Commerce SiteGenesis performs functions that don't require information from the server.

For example error messages. To add payments.js JavaScript to the page, edit the `footer_UI.isml`.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note All of the SiteGenesis JS is built into a single app.js file.

As an alternate approach, use a separate file. For example, place the mini cart code in app.js and separate code in distinct files for PDP, cart, or multi-step checkout. Each file is loaded by the necessary page.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note The platform client side JS is automatically injected into SiteGenesis, based on Business manager Configurations. Changes to the JS are unlikely.