fix JS resources