Update app.js

Update mouseup and isOverlappedOnMove functions.