Made a basic ajax fallback in case the socket isn't working (it isn't)