Fullscreen api fixes

Fix some ReferenceErrors.