added draggable to js
combines codr.js initial edits