syntax bug fix is js