Moved forEach to Main, created JSUtils.replace