ready.draw
<body> <div> <canvas id='bart' width='500' height='310'></canvas> </div> <form name='text'> <input id='writeButton' type=button value='Написать!'> </form> <script src='js/bart.js'></script> </body> </html>
<input name='text' id='text' type='text' value='Напиши что-нибудь'>
$('#writeButton').click(function(){draw(document.forms.text.elements.text)});