An HLS client in Javascript