New to JS having odd problem.

So, I'm trying to open a window and scene for a card game I'm considering making.  So far, I've tried following the Janrae Mendoza tutorials 18 & 19 (the first of which can be found here: "https://www.youtube.com/watch?v=OLjBO6KZht4"  ).  That being said, I'm having an issue when I try to access it in game.

Error Message: Type Error "undefined is not a function"
The Developer Tools Console seems to indicate that there's an issue on lines 11, 18, 25, and 63 (Code below starts at line 10). 

function Window_CardGame() { this.initialize.apply(this, arguments);}Window_CardGame.prototype = Object.create(Window_Base.prototype);Window_CardGame.prototype.constructor = Window_CardGame;Window_CardGame.prototype.initialize = function(x, y) { var width = this.windowWidth(); var height = this.windowHeight(); Window_Base.prototype.initialize.call(this, x, y, width, height); this.refresh();};Window_CardGame.prototype.windowWidth = function() { return this.fittingWidth(1);};Window_CardGame.prototype.windowHeight = function() { return this.fittingHeight(1);};Window_CardGame.prototype.refresh = function() { var x = this.textPadding(); var width = this.contents.width - this.textPadding() * 2; this.contents.clear(); this.drawTextEx("Read This Please",0,0);};Window_CardGame.prototype.open = function() { this.refresh(); Window_Base.prototype.open.call(this);};////Here I declare the scene//function CardGame_Scene() { this.initialize.apply(this, arguments);}CardGame_Scene.prototype = Object.create(Scene_MenuBase.prototype);CardGame_Scene.prototype.constructor = CardGame_Scene;CardGame_Scene.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this);};//this creates the windowCardGame_Scene.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this._CardGameWindow = new Window_CardGame(0,0); this.createWindowLayer(); this.addWindow(this._CardGameWindow);};CardGame_Scene.prototype.start = function() { Scene_MenuBase.prototype.start.call(this);};//Scene Update MethodCardGame_Scene.prototype.update = function() { Scene_MenuBase.prototypel.update.call(this); if (Input.isTriggered('cancel')) { SoundManager.playCancel(); SceneManager.goto(Scene_Map); }};I'm using the SceneManager.goto function to call this script via event.

This is my first time using Javascript, so any help is appreciated.

I hope I'm not reposting - I couldn't find a thread that directly applied to this issue, but if it's been addressed already I would still be thankful for a link. 
can you give the full script (.js file), I'll like to try it.
@Necessarily,

fittingWidth method does not exist by default. If you haven't declared it yourself - that's where it's crashing.

Either declare it yourself, or change

return this.fittingWidth(1);to some other value.
@Necessarily,

fittingWidth method does not exist by default. If you haven't declared it yourself - that's where it's crashing.

Either declare it yourself, or change

return this.fittingWidth(1);to some other value.
That worked for the person doing the tutorial video, but I couldn't see everything they used so I may have missed where they declared it.  I took your advice and got it working, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/new-to-js-having-odd-problem.54735/