updated javascript messages