Fixed JS bugs in pause/play notification system