Add posix ioctl support (partial) and js launch script