js on-page notifications with smooth animation