newes javascript