Switch event handling to 'addEventListener. Check whether the 'Quantize' button should be enabled after the page loads (in case the browser uses a previously selected file (e.g., when navigating back).
Switch event handling to 'addEventListener. Check whether the 'Quantize' button should be enabled after the page loads (in case the browser uses a previously selected file (e.g., when navigating back).

dstein64/k-means-quantization-js,dstein64/k-means-quantization-js