trying to fix JS