Create newlogic.js