Clientside JS code for Merchants