fix JS interactions