fixed socket issue
removed js error on index