Feature/resocket

Moved script into body
simplified js
close socket upon completion

Works, but the client does not know whether it was successful.  Do we want to wait for success or something @kmjungersen?