JavaScript library to load different images suiting the device