Fix js in disk saving mode