Notification js api fixes