Adaptive Serving using JavaScript and the Network Information API