fix JS references