Simple javascript notifier class