Source: https://github.com/googlevr/webvr-polyfill