javascript parser for the html5 srcset attribute