consumptionscript.js to consumption