Fix mimetype issue on script tag