Removed getJson --demo
Refactored to render json response from socket