javascript parset for the html5 srcset attribute