javascript channels work