fixes for style, and separated out drawing.js from drawing.html