inspector: fixed error in expression history, code moved from ssjs to
java