add autoclose
for js/node complete