Inital client side code