original code of [TutsPlus - Object-Oriented JavaScript]