fix bug where notification.close was called in the wrong context...javascript...