making javascript notifier accept extra params