Updated drawing function to allow use in Firefox
Removed scrollbars from window