Using JavaScript try, catch and finally: Example of the Functions