scripts/erlangChallenge.js refactored to use context in 'this'.