Fixed typo on line 177
Changed all uses of brack notation to dot notation, when accessing object properties.
Added semicolons to ranger methods.
Made a valueCheck function to check if a value is undefined