Refactored mastermind client js.