Fixed duplicate result bug.
Fixed duplicate result bug.

Socket.IO's socket.on() function should only be used once. By creating a
new instance of socket.on() each time, the function is essentially
duplicated which caused the results to be interpreted multiple times.

Imvoo/MiniZinc-webui,Imvoo/MiniZinc-webui