add initalize Javascript for client side