Here is my HTML div:
JavaScript:
$(document).ready(function(){ var ctx = $("#mycanvas").get(0).getContext("2d