partial
JS on draw