commit int.js and json states