added draw.js, ported draw to activities.php