Exploring OOP concepts in JavaScript using a simple toolbar