- JavaScript try catch snippet;