fix not working js