replaced tabs with spaces; changed map; implemented echo with socket.io