Adding js background for socket