fix inverted list of JS inclusions