fixed js notice timing