Update logics.js