Create logics.js