Added handle to output/error streams; changed jsui files.