I would prefer an ActivityPalette class, like:

    var activityButton = document.getElementById("activity-button");
    var activityPalette = new activitypalette.ActivityPalette(activityButton);

I will help you with this, because I think is the first subclassing we have in Sugar Web.