added dynamic JS to add units for a facility