Update logic.js
Merge pull request #2 from Wenqer/patch-2

Update logic.js