PhantomJS Runner: Removing .window reference and adding JSHint comment to declare global