Question: I have the following code.

var json = callback + '(' + Utilities.jsonStringify(range.getValues()) +')';

return ContentService.createTextOutput(json).setMimeType(ContentService.MimeType.JAVASCRIPT);

When I call that app from another page I get the following error:

Refused to execute script from '<https://script.google.com/macros/s/>/exec?jsonp=callback' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled. How do I get around this issue. It LOOKS like the generating code sets the mime type but it is not being honored. On the other end, I generate a element and also set the mimetype to text/javascript but that doesn't fix it.

Answer: 
I'm currently working in a plugin for video.js for adding support to VPAID:
<https://github.com/MailOnline/videojs-vast-vpaid>

demo:
<http://mailonline.github.io/videojs-vast-vpaid/>

if someone has some issues with the FLASH VPAID please report here:
<https://github.com/MailOnline/VPAIDFLASHClient>

if someone has some issues with the HTML5 VPAID please report here:
<https://github.com/MailOnline/VPAIDHTML5Client>
There's a plugin available, called [videojs-ima](https://github.com/googleads/videojs-ima), developed by Google. In fact it's just a bridge between video.js and [IMA sdk](https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/). 
[Introduction page](https://developers.google.com/interactive-media-ads/video_features_and_sdk_versions) states it supports VAST 2, VAST 3, VPAID and VMAP.

**VPAID support**

VPAID support is turned off by default. If you want to enable it just call `google.ima.settings.setVpaidAllowed(true)` before initializing plugin. Here's an example:

```js
var player = videojs('video-player');
//...
google.ima.settings.setVpaidAllowed(true);
//...
player.ima({
    debug: config['debug'],
    adTagUrl: 'Ad tag here',
    id: 'video-player'
});

```

Definitely check [VPAID support caveats](https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/guides/vpaid2js) and more info about VPAID support for IMA HTML5 SDK

Browser support
===============

Surprisingly IMA HTML5 SDK do not support IE of any versions. Just found out it's [deep in documentation](https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/ads#videoFormats)

Note
====

IMA heavily relies on google services and logs all the activity of ima and VPAID to google servers. If you don't want to share your data with Google better try something different.