Update javascript to track connection state
Update javascript to track connection state

jrusbatch/compilify,vendettamit/compilify,jrusbatch/compilify,vendettamit/compilify,appharbor/ConsolR,appharbor/ConsolR