updates js to only include target