Refactor sketch scripts; canvas responds to resize