add working js to scope 3 and 4