fix chan.js
revise chan.js
modify chan.js
copy chan.js to chan-simple.js
modify comments
change method name close to end
remove unused variable
modify comments
fix handling of chan arguments