Canvas example in native js