Js multiple components - allow individual config for each