output redirection to JS console if system calls are not available (fixes #29)