Summary
The shapes of the JES/JER was strange (nominal value wasn't between up and down): fixed the mistake in the code, now it looks fine.
For the future:
add to the code that makes JES(R)UP/DOWN dijet mass shapes part to create directly shapes for intermediate masses.