[js] coding: remove dead code
[unix] error handling in unix_set_nonblock()
[unix] error handling on fseek() calls