javascript parser for the html5 sizes attribute