No, it's an array of bytes. Disassembled Java bytecode could be considered text-based, but I'm pretty sure the actual class files are considered binaries.
Of course, Java code is all binary, not at all human-readable or writeable. And there are not compilers for Javascript (except for a few JIT compilers in Safari, Chrome, Internet Explorer, and maybe Opera).
Actually all modern browsers and standalone interpreters like node.js have a JIT compiler for JavaScript; and while Java's bytecode is still not a machine code and is also JIT compiled by the Java "virtual machine", both languages are equally "scripting" or equally "non-scripting" (wherever you want to put the "scripting" line).
I guess I shouldn't have left off the <sarcasm> tag.