Restructuring lbUtil to allow for it to be strictly client-side.