Update editor.js

Fixed div draw function to work on touch.