Nyx:Making Web Applications More Energy Efficient for OLED Smartphones