add client-side script