removed adding window.echo to echo function