fixed admin js error, was trying to use socket. before it was connected