drawing js modified