Update logic.js

fixed tabs