Fix JavaScript errors: Add missing showWarning function and improve error handling 4cf54ca fokan commited on Aug 26