Refactored the selector fetching the canvas to use jQuery.