A MIME parser written in JavaScript