Script Debugger Equivalent for Javascript?

Is there any equivalent to Script Debugger when using Javascript to interface with MacOS apps?