Canvas rectangle

requires canvas html with id canvas + jquery