Use $global for Opal.global (stop using $window and $document)