Remove debug from jsrunner
Log error conditionally