Javascript variable `msg_newsl` is sometimes not defined. The code that uses that should check if it exists before referencing it. 