JS styles and asynchronous I/O in C