Implemented main part of the project: JavaScript object.