chore(clientsidescripts): use function params