Creating a try-catch example in JavaScript