Get the notifications by js