Add method to register libraries at client-side