University project in JavaScript