Added BOOL support for JS compiler.