Implement MNISTLoader for browser