Function that draws a grid on your HTML5 Canvas. To use, just pass the function and a integer, which represents the spacing of the grid in pixels.