Fix mimetype and object in scripts