Add test for protected videos with JavaScript functions in var scope

YouTube recently changed the JavaScript player code and JavaScriptCore now fails to properly evaluate it
Have dummy `window` and `document` objects

JavaScript evaluation fails early without `window` and `document` objects. Dummy objects are provided in order for the signature function to be properly evaluated.

Fixes #52