Updated the canvas example to not depend on the client-side libraries.