Corrected errors handling
upgraded min js version