reformat javascript
moving drawing tools around