Javascript/ECMAScript library for parsing Content-Type and Media/MIME type strings