fixed js and add pnotify