js syntax err fix