A notification class for javascript