added local variables for canvas and context

easier than typing $.ctx and $.canvas