Adding handler for resize
Added jQuery, canvas resizing, some comments