lychee.Input: Using global again, document is just too buggy to implement it sandboxed.