color output in both js and jvm works