compensation in js as well