JavaScript method to create paragraphs of text using canvas