facility populating javascript