fix some jaavscript errors and mkdir(_del)
replace string chainlist by pointer for parent