Bugfix, still singleuse

Now you can do more then 8 commands before it crashes.

Refreshing the page will display all the responses, but it will also
break the program after 2 more commands. Probably need to redefine the
socket after they refresh, not sure about that though.