Client and Serverside js works when in rooms