Tag - JavaScript error handling best practices