Differentiating server and client side code