client-side common js