Fix #175 regression, js freeze on incomplete strings