Update srcset-info.js

Now it works in more browsers (slice(-1)).

Also working on making R.js module based on it with change that it uses container width instead of window width so targetting is nicer. Good work, thanks for sharing.