alter scrap js