scripts for shared client side codee