separate draw utilities in main.js to drawUtil.js