If you want to read tutorial, which describes how to create this project from scratch, please read tutorial Acquire images from TWAIN scanner in HTML+JavaScript ...