updating client side js to be dynamic looking for socket files