fixing distributed js files to prevent debug log leak